from django.db import models

# Create your models here.
class User(models.Model):
    u_name=models.CharField(max_length=32)
    pwd=models.CharField(max_length=32)
    user=models.CharField(max_length=32)
    phone=models.CharField(max_length=32)


class Property(models.Model):
    P_name=models.CharField(max_length=32)
    times=models.CharField(max_length=32)
    describe=models.TextField()
    user=models.ManyToManyField(to="User")


class Lab(models.Model):
    l_name=models.CharField(max_length=32)
    floor=models.IntegerField()
    room_number=models.IntegerField()
    user=models.ManyToManyField(to="User")
    property=models.ManyToManyField(to="Property")

